package com.molin.innerClass.lambdalianxi5;

public class InterImpl {
    public static void main(String[] args) {
        //接口有且只有一个抽象方法
        double sum=useInter((double a,double b)->{return a+b;});
        System.out.println(sum);
    }
    public static double useInter(Inter inter){
        return inter.method(12.3,20.25);
    }
}
